package com.aq.sales.entity;

import org.hibernate.SessionFactory;
import org.springframework.context.support.FileSystemXmlApplicationContext;

public class TestLookup {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		FileSystemXmlApplicationContext ctx = new FileSystemXmlApplicationContext("spring-aqsales-services.xml");
		 SessionFactory sf=ctx.getBean("sessionFactory",SessionFactory.class);
		// sf.openSession().save(new Lookup(0,1,"new desc","name",0));
		 sf.close();
		 System.out.println("savad successfully");
	}

}
